package com.buba.system.service.impl;

import com.buba.system.dao.MenuMapper;
import com.buba.system.pojo.SystemMenu;
import com.buba.system.service.MenuService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DubboService
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<SystemMenu> selMenu() {
        return menuMapper.selMenu();
    }

    @Override
    public List<SystemMenu> selMenuById(String menu_id) {
        return menuMapper.selMenuById(menu_id);
    }
}
